<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* index.html */
class __TwigTemplate_92c77c851c9250fe45e2434ae5c3d0bf971375b3c1c5672fe9dd6f45484bae40 extends \Twig\Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<!--
 * @Author: your name
 * @Date: 2019-12-15 23:16:29
 * @LastEditTime: 2019-12-17 00:12:47
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \\frame\\app\\views\\index.html
 -->
 <!DOCTYPE html>
 <html lang=\"en\">
 <head>
     <meta charset=\"UTF-8\">
     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
     <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">
     <title>我的留言板</title>
 </head>
 <body>
<h1>我的留言板</h1>
<a href=\"/index/add\">添加留言</a>

<div>
    ";
        // line 22
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["data"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["val"]) {
            // line 23
            echo "    <p>";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["val"], "title", [], "any", false, false, false, 23), "html", null, true);
            echo "</p>
    <p>";
            // line 24
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["val"], "content", [], "any", false, false, false, 24), "html", null, true);
            echo "</p>
    <p>";
            // line 25
            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["val"], "create_time", [], "any", false, false, false, 25), "Y-m-d H:i:s"), "html", null, true);
            echo "</p>
    <a href=\"/index/del/id/";
            // line 26
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["val"], "id", [], "any", false, false, false, 26), "html", null, true);
            echo "\">删除留言</a>
    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['val'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 28
        echo "</div>
</body>
</html>";
    }

    public function getTemplateName()
    {
        return "index.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  85 => 28,  77 => 26,  73 => 25,  69 => 24,  64 => 23,  60 => 22,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<!--
 * @Author: your name
 * @Date: 2019-12-15 23:16:29
 * @LastEditTime: 2019-12-17 00:12:47
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \\frame\\app\\views\\index.html
 -->
 <!DOCTYPE html>
 <html lang=\"en\">
 <head>
     <meta charset=\"UTF-8\">
     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
     <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">
     <title>我的留言板</title>
 </head>
 <body>
<h1>我的留言板</h1>
<a href=\"/index/add\">添加留言</a>

<div>
    {% for val in data %}
    <p>{{ val.title }}</p>
    <p>{{ val.content }}</p>
    <p>{{ val.create_time|date('Y-m-d H:i:s') }}</p>
    <a href=\"/index/del/id/{{ val.id }}\">删除留言</a>
    {% endfor %}
</div>
</body>
</html>", "index.html", "E:\\imooc\\frame\\app\\views\\index.html");
    }
}
